<include file="public/min-header"/>
<div class="wrapper">
    <include file="public/breadcrumb"/>
   	<section class="content">
       <div class="row">
			<div class="col-md-12">
			
			<div class="box box-info">
                <div class="box-header with-border">
                  <h3 class="box-title">发布单页</h3>
                </div>
                <form class="form-horizontal" action="{:U('Article/singleHandle')}" id="add_post" method="post">
                  <div class="box-body">
                      <div class="form-group">
                          <label for="inputEmail3" class="col-sm-2 control-label">单页标题</label>
                          <div class="col-sm-8">
                              <input type="text" class="form-control" value="{$info.title}" name="title" >
                          </div>
                      </div>
                    <div class="form-group">
	                    <label class="control-label col-sm-2">单页内容</label>
	                    <div class="col-sm-10">
				        <textarea class="span12 ckeditor" id="sign_content" name="content" title="">
				            {$info.content}
				        </textarea>
	                    </div>
                      </div>
                  </div><!-- /.box-body -->
                  <div class="form-group">
                      <label class="control-label col-sm-2"></label>
                      <div class="col-sm-10">
                  	    <input type="hidden" name="cat_id" value="{$info.cat_id}">
                        <button type="submit" class="btn btn-info pull-left">提交</button>
                      </div>
                  </div>
                </form>
              </div>

          </div>
	   </div>
	</section>
</div>
<script type="text/javascript">
    var url="{:U('Ueditor/index',array('savePath'=>'article'))}";
    var ue = UE.getEditor('sign_content',{
        serverUrl :url,
        zIndex: 999,
        initialFrameWidth: "80%", //初化宽度
        initialFrameHeight: 300, //初化高度
        focus: false, //初始化时，是否让编辑器获得焦点true或false
        maximumWords: 99999, removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign',//允许的最大字符数 'fullscreen',
        pasteplain:false, //是否默认为纯文本粘贴。false为不使用纯文本粘贴，true为使用纯文本粘贴
        autoHeightEnabled: true,
        allowDivTransToP: false
    });
</script>
</body>
</html>